<template>
    <div class="common-layout">
        <el-container>
            <el-aside width="220">
                <div class="el-menu-vertical-demo-box1">
                    <h1 class="login_icon login_str">
                        <el-icon size="30" color="#878ba5">
                            <Platform />
                        </el-icon>
                        <span>{{ isCollapse ? " " : "万人万薪" }}</span>
                    </h1>
                </div>
                <AsideCom :meunList="meunList"></AsideCom>
            </el-aside>
            <el-container>
                <el-header>
                    <headerCom></headerCom>
                </el-header>
                <el-main>
                    <breakCom></breakCom><br/>
                    <RouterView></RouterView>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script setup>
import AsideCom from '../../layout/asideCom.vue';
import headerCom from '../../layout/headerCom.vue';
import breakCom from "../../components/break/index.vue"
import { usePermission } from "../../store/permission.js"
import { useUser } from "../../store/uses.js"
import { storeToRefs } from "pinia"
let usePermissionStore = usePermission()
let { meunList } = storeToRefs(usePermissionStore)

let useUserStore = useUser()
let { isCollapse } = storeToRefs(useUserStore)
</script>
<script>
export default {
    meta:{
    name: "主页"
}
}
</script>
<style scoped lang="less">
.el-header {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
}


.el-aside {
    background-color: #D3DCE6;
    color: #333;
    // text-align: center;
    // line-height: 200px;
}

.el-main {
    background-color: #E9EEF3;
    color: #333;
    // text-align: center;
    // line-height: 160px;
}

body>.el-container {
    margin-bottom: 40px;
}

.box {
    margin-top: 2%;
}

.el-menu-vertical-demo-box1 {
    transition: all 1s;
    margin-left: 7%;
    padding-left: 2%;

    .login_str {
        height: 60px;
        display: flex;
        align-items: center;
        margin-right: 10px;
        font-size: 30px;
        transition: all 1s;

        span {
            transition: all 1s;
            color: #a1ada9;
        }

    }
}

// .el-container:nth-child(5) .el-aside,
// .el-container:nth-child(6) .el-aside {
//     line-height: 260px;
// }

// .el-container:nth-child(7) .el-aside {
//     line-height: 320px;
// }
</style>
  
  